package com.daxt.model.dic;

public enum DicDocState {

	//"0 整理 1归档审批 2归档 3 鉴定 4销毁  5回收站

	neaten("0","整理"), //
	approval("1","审批"), //
	archive("2","归档"), //
	authenticate("3","鉴定"), //
	Destroy("4","销毁"), //
	recycle("5","回收站"), //
	external("6","外部接收"), //
	turnOver("7","移交");

	private String key;
	private String value;

	private DicDocState(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		DicDocState[] values = DicDocState.values();
		for (DicDocState type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
